package com.winona.domain;

import java.lang.ref.WeakReference;
import java.util.List;

import android.view.View;

import com.taplinker.core.Resource;
import com.taplinker.core.ResourceManager;
import com.taplinker.core.rpc.socket.channel.Channel;
import com.winona.bean.User;

public class DataCenter implements Resource {
	private String currentAppVersion = null;
		
	private WeakReference<View> slidingIgnoredView;
	
	private User user = null;
	
	private static DataCenter instance;
	
	private DataCenter() {
	}
	
	public static DataCenter getInstance() {
		if (instance != null) {
			return instance;
		}
		synchronized (DataCenter.class) {
			if (instance == null) {
				instance = new DataCenter();
				ResourceManager.getInstance().addResource(instance);
			}
		}
		return instance;
	}
	
	public String getCurrentAppVersion() {
		return currentAppVersion;
	}

	public void setCurrentAppVersion(String currentAppVersion) {
		this.currentAppVersion = currentAppVersion;
	}

	
	
	
	public void setUser(User user) {
		this.user = user;
	}
	
	public User getUser() {
		return user;
	}


	
	@Override
	public void clear() {
		
	}

	@Override
	public void releaseResource() {
		// TODO Auto-generated method stub
		
	}

	
	
}
